package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存管理对象 stock
 * 
 * @author liukangzu
 * @date 2025-04-17
 */
public class Stock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 生产id */
    @Excel(name = "生产id")
    private Integer stockId;

    /** 生产计划id */
    @Excel(name = "生产计划id")
    private Integer stockProductionPlanId;

    /** 实际生产数量 */
    @Excel(name = "实际生产数量")
    private Integer stockProductionCount;

    /** 实际生产时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际生产时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stockProductionTime;

    /** 库存 */
    @Excel(name = "库存")
    private Integer stockCount;

    /** 负责人 */
    @Excel(name = "负责人id")
    private Integer stockUserId;

    /** 负责人 */
    @Excel(name = "负责人")
    private SysUser user;

    /** 生产计划 */
    @Excel(name = "生产计划")
    private PrductionPlan prductionPlan;

    /** 菜谱 */
    @Excel(name = "菜谱")
    private List<Recipe> recipeList;

    public List<Recipe> getRecipeList() {
        return recipeList;
    }

    public void setRecipeList(List<Recipe> recipeList) {
        this.recipeList = recipeList;
    }

    /** 预制菜品类 */
    @Excel(name = "预制菜品类")
    private PremaidFood premaidFood;

    public PrductionPlan getPrductionPlan() {
        return prductionPlan;
    }

    public void setPrductionPlan(PrductionPlan prductionPlan) {
        this.prductionPlan = prductionPlan;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }


    public PremaidFood getPremaidFood() {
        return premaidFood;
    }

    public void setPremaidFood(PremaidFood premaidFood) {
        this.premaidFood = premaidFood;
    }

    public void setStockId(Integer stockId)
    {
        this.stockId = stockId;
    }

    public Integer getStockId() 
    {
        return stockId;
    }

    public void setStockProductionPlanId(Integer stockProductionPlanId) 
    {
        this.stockProductionPlanId = stockProductionPlanId;
    }

    public Integer getStockProductionPlanId() 
    {
        return stockProductionPlanId;
    }

    public void setStockProductionCount(Integer stockProductionCount) 
    {
        this.stockProductionCount = stockProductionCount;
    }

    public Integer getStockProductionCount() 
    {
        return stockProductionCount;
    }

    public void setStockProductionTime(Date stockProductionTime) 
    {
        this.stockProductionTime = stockProductionTime;
    }

    public Date getStockProductionTime() 
    {
        return stockProductionTime;
    }

    public void setStockCount(Integer stockCount) 
    {
        this.stockCount = stockCount;
    }

    public Integer getStockCount() 
    {
        return stockCount;
    }

    public void setStockUserId(Integer stockUserId) 
    {
        this.stockUserId = stockUserId;
    }

    public Integer getStockUserId() 
    {
        return stockUserId;
    }

    @Override
    public String toString() {
        return "Stock{" +
                "stockId=" + stockId +
                ", stockProductionPlanId=" + stockProductionPlanId +
                ", stockProductionCount=" + stockProductionCount +
                ", stockProductionTime=" + stockProductionTime +
                ", stockCount=" + stockCount +
                ", stockUserId=" + stockUserId +
                ", user=" + user +
                ", prductionPlan=" + prductionPlan +
                ", premaidFood=" + premaidFood +
                '}';
    }
}
